package com.chujiekeji.test.base;

import android.content.Context;
import android.widget.Toast;

public class BaseToast {
    private static  BaseToast instance;
    private Context context;
    private Toast toast;

    public BaseToast() {
        
    }

    public static  BaseToast get(){
        if (instance==null){
            instance = new BaseToast();
        }
        return instance;
    }

    public  void init(Context context){
        this.context=context;
    }

    public  void show(int id){
        show(context.getResources().getString(id));
    }

    public  void show(String msg){
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }

    public  void showDataError(){

    }

    public  void showFailure(){

    }

    public  void showNetworkTimeout(){

    }

    public  void showReturnOneMoreTime(){

    }

    public  void showSuccess(){

    }
}